Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRSetLeavingNodeProc

You can use the QTVRSetLeavingNodeProc function to install or remove a node-leaving procedure.

OSErr QTVRSetLeavingNodeProc (
                     QTVRInstanceqtvr,
                     QTVRLeavingNodeUPPleavingNodeProc,
                     SInt32refCon,
                     UInt32 flags);
qtvr
An instance of a QuickTime VR movie.
leavingNodeProc
A universal procedure pointer for a node-leaving procedure. See "MyLeavingNodeProc" for information about node-leaving procedures.
refCon
A reference constant. This value is passed to the specified node-leaving procedure.
flags
Unused. Set this parameter to 0.
function result
A result code.

DESCRIPTION

The QTVRSetLeavingNodeProc function installs the procedure specified by the leavingNodeProc parameter as a node-leaving procedure for the QuickTime VR movie specified by the qtvr parameter. Your procedure is called whenever a node is left (either in response to user actions or in response to QuickTime VR Manager functions that change nodes). The reference constant specified by the refCon parameter is passed unchanged to that node-leaving procedure.

To remove a previously installed node-leaving procedure, set leavingNodeProc to nil .

SEE ALSO

Use QTVRSetEnteringNodeProc [link] to install or remove a node-entering procedure.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |